Hi @Allen-Chen ,
from developer documentation of InitWithSuiteName
You can use this method when developing an app suite, to share preferences or other data among the apps, or when developing an app extension, to share preferences or other data between the extension and its containing app.
Then , you should use this method when you defined an app group and you want to share preferences between apps, widget and extensions.
In other use cases, you should use standard user defaults.
Bye
Rob
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: